define(function(require, exports, module) {
  'use strict';
  var Backbone = require('backbone');
  var $ = require('jquery');
  var _ = require('underscore');
  var jsonview = require('jsonview');

  function main() {
    var $app = $('<div id="app">');
    $('#main').html($app);

    var a = new Animation(112);
    // a.start()

    var b = new Animation(233);
    // b.start()
  }


  // function Animation() {

  // }

  // Animation.prototype.start = function start() {
  //   window.requestAnimationFrame(arguments.callee);
  // }


  class Animation {
    constructor(a) {
      this.a = a;
    }
    start() {
      var self = this;
      var a = function() {
        requestAnimationFrame(a)
        console.log(self.a)
      }
      a()
    }
  }

  return main;
})
